package cn.ssj.service.impl;

import cn.ssj.dao.ProductDao;
import cn.ssj.entity.Product;
import cn.ssj.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;

/**
 * Created by Administrator on 2017/9/1 0001.
 */
@Service
public class ProductServiceImpl extends BaseServiceImpl<Product,Integer> implements ProductService{
    @Autowired
    private ProductDao dao;

    @Transactional
    public Product insert(Product entity) {
        return super.insert(entity);
    }
    @Transactional
    public Product update(Product entity) {
        return super.update(entity);
    }
    @Transactional
    public boolean delete(Integer id) {
        return super.delete(id);
    }
}
